<!DOCTYPE html>
<html>
<head>
    <title>EJ销售管理系统 - 主菜单</title>
    <link rel="stylesheet" href="../static/css/ej.css">
    <link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        .index-container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 20px;
        }
        .header-panel {
            background-color: #c0a36c;
            color: white;
            padding: 30px;
            border-radius: 12px;
            margin-bottom: 30px;
            text-align: center;
        }
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .menu-card {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            padding: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #eee;
        }
        .menu-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        .menu-icon-title {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }
        .menu-icon {
            font-size: 2.5rem;
            color: #c0a36c;
        }
        .menu-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #333;
        }
        .menu-description {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .menu-link {
            display: inline-block;
            background-color: #c0a36c;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        .menu-link:hover {
            background-color: #a88c5a;
            color: white;
            text-decoration: none;
        }
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #c0a36c;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            font-size: 1.3rem;
        }
        .footer {
            text-align: center;
            margin-top: 40px;
            color: #666;
            font-size: 0.9rem;
        }
    </style>
</head>
<body style="background-color:#fffbf6">
    
    <!-- 状态栏 -->
    {% include 'status_bar.html' %}
    
    <div class="index-container">
        <!-- 头部标题 -->
        <div class="header-panel">
            <h1 style="color:white;"><i class="bi bi-gem"></i> EJ销售管理系统</h1>
            <p class="mb-0">专业库存与销售管理平台</p>
        </div>

        <!-- 查询与搜索模块 -->
        <div class="section-title">
            <i class="bi bi-search"></i> 查询与搜索
        </div>
        <div class="menu-grid">
            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-search"></i>
                    </div>
                    <div class="menu-title">饰品搜索</div>
                </div>
                <div class="menu-description">
                    搜索和浏览手链、挂链信息，查看产品详情和图片
                </div>
                <a href="/ej_jade_search" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-palette"></i>
                    </div>
                    <div class="menu-title">文创产品搜索</div>
                </div>
                <div class="menu-description">
                    搜索和浏览文创产品信息，按颜色、设计师等条件筛选
                </div>
                <a href="/ej_culture_search" class="menu-link">进入页面</a>
            </div>
        </div>

        <!-- 销售管理模块 -->
        <div class="section-title">
            <i class="bi bi-cart-check"></i> 销售管理
        </div>
        <div class="menu-grid">
            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-cart-plus"></i>
                    </div>
                    <div class="menu-title">销售录入</div>
                </div>
                <div class="menu-description">
                    录入新的销售记录，包括买家信息、销售产品、价格等详细信息
                </div>
                <a href="/ej_sale_input" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-bar-chart"></i>
                    </div>
                    <div class="menu-title">销售统计分析</div>
                </div>
                <div class="menu-description">
                    按日+买家分类汇总和销售明细清单统计，支持数据导出
                </div>
                <a href="/ej_sale_stat" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-cash-coin"></i>
                    </div>
                    <div class="menu-title">销售结算管理</div>
                </div>
                <div class="menu-description">
                    管理销售结算信息，更新结算状态和支付记录
                </div>
                <a href="/ej_sale_settle" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-download"></i>
                    </div>
                    <div class="menu-title">导出销售列表</div>
                </div>
                <div class="menu-description">
                    导出销售库存数据到Excel，包含产品图片和成本信息
                </div>
                <a href="/ej_export_sale_list" class="menu-link">进入页面</a>
            </div>
        </div>

        <!-- 库存管理模块 -->
        <div class="section-title">
            <i class="bi bi-boxes"></i> 库存管理
        </div>
        <div class="menu-grid">
            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-box-arrow-in-down"></i>
                    </div>
                    <div class="menu-title">库存录入</div>
                </div>
                <div class="menu-description">
                    录入新产品库存信息，包括材料成本、手工费用等
                </div>
                <a href="/ej_stock_input" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-currency-exchange"></i>
                    </div>
                    <div class="menu-title">库存结算</div>
                </div>
                <div class="menu-description">
                    管理库存结算信息，处理材料、手工等费用结算
                </div>
                <a href="/ej_stock_settle" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-arrow-return-left"></i>
                    </div>
                    <div class="menu-title">退单管理</div>
                </div>
                <div class="menu-description">
                    管理销售退单记录，处理退货和库存恢复操作
                </div>
                <a href="/return_stock" class="menu-link">进入页面</a>
            </div>

        </div>

        <!-- 产品管理模块 -->
        <div class="section-title">
            <i class="bi bi-tags"></i> 产品管理
        </div>
        <div class="menu-grid">
            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-gem"></i>
                    </div>
                    <div class="menu-title">饰品产品录入</div>
                </div>
                <div class="menu-description">
                    录入饰品产品基础信息，包括产品属性、规格等
                </div>
                <a href="/ej_product_input" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-plus-circle"></i>
                    </div>
                    <div class="menu-title">文创产品录入</div>
                </div>
                <div class="menu-description">
                    录入新的文创产品信息，包括设计信息、材质、颜色等
                </div>
                <a href="/ej_culture_product_input" class="menu-link">进入页面</a>
            </div>

            <div class="menu-card">
                <div class="menu-icon-title">
                    <div class="menu-icon">
                        <i class="bi bi-images"></i>
                    </div>
                    <div class="menu-title">产品图片上传</div>
                </div>
                <div class="menu-description">
                    上传产品图片，支持多选图片，自动调整分辨率和格式
                </div>
                <a href="/ej_upload_product_image_page" class="menu-link">进入页面</a>
            </div>
        </div>

        <div class="footer">
            <p>© 2025 EJ销售管理系统 | 版本 1.0.0</p>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
